package server

import akka.actor.{Actor, ActorSystem, Props}

/**
  * Created by shouf on 2016/5/16.
  */
class ServerActor extends Actor {
  override def preStart={
    println("start")
  }
  override def postStop = {
    println("stop")
  }
  def receive = {
    case str: String =>
      println(s"server received ${str}!")
      sender() ! s"server send client ${str}!"
    case _ => unhandled()
  }
}
